﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DataCenter_DataBase;

namespace DataCenter.Models
{
    public class SysConfig
    {
        private static tbl_sys_config m_Config;
        public static tbl_sys_config _Config
        {
            get
            {
                if (m_Config == null)
                {
                    ApiDataBase apiDataBase = new ApiDataBase();
                    m_Config = apiDataBase .GetSysConfig();
                    KeaoBase.KeaoRedis.InitRedis(m_Config.cache_host, m_Config.cache_port, m_Config.cache_pwd);
                }
                return m_Config;
            }
        }
    }
}